#!/usr/bin/python
# -*- coding: utf-8 -*-

import sys,time

def myprint(obj, end='\n'):
    sys.stdout.write(str(obj) + end)

def main():
    for i in range(1,10):
        myprint("\r%d" % i,end='')
        sys.stdout.flush()
        time.sleep(0.5)
    myprint("\r  \r")

if __name__ == '__main__':
    main()
    myprint('done')